<!--
  Generated template for the DemoDetailPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>demo_detail</ion-title>
    <ion-buttons end>
      <button ion-button icon-only (click)="save_data()">
        <i class="iconfont icon-baocun" style="font-size: 30px;color: #faf6f6;" >
        </i>
      </button>
    </ion-buttons>
  </ion-navbar>

</ion-header>


<ion-content >
<div *ngFor="let key of objectKeys(page_data)">
  <ion-item *ngIf="object_Type(page_data[key])!='object';else elseBlock">
      <ion-label>{{key}}</ion-label>
      <ion-input [(ngModel)]="page_data[key]"></ion-input>
  </ion-item>
  <ng-template #elseBlock>
    <ion-list-header class="cust_list_header">{{key}}</ion-list-header>
    <ion-item *ngFor="let key2 of objectKeys(page_data[key])">
    <ion-label>{{key2}}</ion-label>
    <ion-input [(ngModel)]="page_data[key][key2]"></ion-input>
    </ion-item>
  </ng-template>
</div>
</ion-content>
